import { stores } from '@/stores/index.js'
const userStore = stores.useUserStore()
export default [
  {
    name: 'jyfs',
    label: '校验方式',
    widget: 'dropdownSelect',
    valueType: 'zdzw', // options的value属性取值zddm或zdzw，
    multiple: true,
    options: [
      {
        zdzw: '人脸',
        zddm: '人脸'
      },
      {
        zdzw: '指纹',
        zddm: '指纹'
      },
      {
        zdzw: '刷卡',
        zddm: '刷卡'
      },
      {
        zdzw: '密码',
        zddm: '密码'
      }
    ],
    rules: {
      required: true
    }
  },
  {
    name: 'XB',
    label: '性别',
    type: 'select',

    options: [
      {
        zdzw: '男',
        zddm: '1'
      },
      {
        zdzw: '女',
        zddm: '2'
      }
    ],

    params: {
      codeTableName: 'C_XB'
    },
    api: '/oauth/dict/codeservice/code',
    methods: 'post',
    rules: {
      trigger: 'blur',
      required: true,
      message: '请选择性别'
    }
  },

  {
    defultValue: null,
    // downSelectDataName: 'C_JS',
    api: '/znjszd3/comm/getJshsByDwdm',
    method: 'get',
    label: '监室号',
    name: 'jsh',
    queryType: null,
    valueType: 'CC',
    widget: 'dropdownSelect',
    ywfl: null,
    params: {
      type: 'tree',
      dwdm: '{dwdm}' // 动态单位代码（从pinia中取值），常见于页面左侧选择单位，再根据选择的单位代码请求数据
    },
    rules: {
      required: true
    }
  },
  {
    defultValue: null,
    // downSelectDataName: 'C_JS',
    api: '/znjszd3/comm/getDictCodeList',
    method: 'get',
    label: '设备厂家',
    name: 'company',
    queryType: null,
    valueType: 'CC',
    widget: 'dropdownSelect',
    ywfl: null,
    params: {
      dicttype: 'CNP_COMPANY'
    },
    rules: {
      required: true
    }
  },
  {
    defultValue: null,
    // downSelectDataName: 'C_JS',
    api: '/znjszd3/comm/getDictCodeList',
    method: 'get',
    label: '开发公司',
    name: 'kffactory',
    queryType: null,
    valueType: 'CC',
    widget: 'dropdownSelect',
    ywfl: null,
    params: {
      dicttype: 'CNP_COMPANY'
    },
    rules: {
      required: true
    }
  },
  {
    defultValue: null,
    // downSelectDataName: 'C_JS',
    api: '/znjszd3/comm/getDictCodeList',
    method: 'get',
    label: 'APK模式',
    name: 'apkymlx',
    queryType: null,
    valueType: 'CC',
    widget: 'dropdownSelect',
    ywfl: null,
    params: {
      dicttype: 'ZDAPK_YMLX'
    },
    rules: {
      required: true
    }
  },
  {
    defultValue: null,
    // downSelectDataName: 'C_JS',
    api: '/znjszd3/comm/getDictCodeList',
    method: 'get',
    label: '关联业务',
    name: 'forapp',
    queryType: null,
    valueType: 'CC',
    widget: 'dropdownSelect',
    ywfl: null,
    params: {
      dicttype: 'YWAPP_TYPE'
    },
    rules: {
      required: true
    }
  },
  {
    defultValue: null,
    // downSelectDataName: 'C_JS',
    api: '/znjszd3/comm/getDwCfgListByForapp',
    method: 'get',
    label: '验证推送',
    name: 'yztsurl',
    queryType: null,
    valueType: 'CC',
    widget: 'dropdownSelect',
    ywfl: null,
    multiple: true,
    params: {
      forapp: '9995',
      dwdm: '{dwdm}' // 动态单位代码（从pinia中取值），常见于页面左侧选择单位，再根据选择的单位代码请求数据
    },
    rules: {
      required: false
    }
  },
  {
    defultValue: null,
    // downSelectDataName: 'C_JS',
    api: '/znjszd3/ht/yrsh/getMusicListByDwdm',
    method: 'get',
    label: '选择音乐',
    name: 'rid',
    queryType: null,
    valueType: 'CC',
    widget: 'dropdownSelect',
    ywfl: null,
    params: {},
    rules: {
      required: true
    }
  }
]
